package com.mflex.mwms.activity;

import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import com.mflex.mwms.R;

import butterknife.BindView;

public class TransferOffDetailActivity extends BaseActivity {

//    @BindView(R.id.txtCheckBox)
//    CheckBox txtCheckBox;
//
//    @BindView(R.id.stv_PalletNo)
    EditText stvPalletNo;

    @BindView(R.id.stv_BoxNumber)
    EditText stvBoxNumber;

    @BindView(R.id.button_clear)
    Button buttonClear;

    @BindView(R.id.button_save)
    Button buttonSave;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_transfer_off_detail);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
//            case R.id.txtCheckBox:
//                adapterCheckMd(view);
//                break;
            case R.id.button_clear:
                clearButtonMd(view);
                break;
            case R.id.button_save:
                saveButtonMd(view);
                break;
            default:
                break;
        }
    }

    @Override
    public boolean onKey(View view, int i, KeyEvent keyEvent) {
        if (keyEvent.getAction() == KeyEvent.ACTION_DOWN && (i == 66 || i == 61)) {
            switch (view.getId()) {
                case R.id.stv_BoxNumber:
                    checkBoxNumber(view);
                    break;
                default:
                    break;
            }
        }
        return false;
    }

    private void clearButtonMd(View v) {

    }

    private void saveButtonMd(View v) {

    }

    private void adapterCheckMd(View v) {

    }

    private void checkBoxNumber(View v) {

    }
}